﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="True"
    CodeBehind="TU_Company.List.aspx.cs" Inherits="JOIN.APTS.Apps.TU_CompanyList" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- List.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
    <table cellspacing="0" cellpadding="0" width="95%" border="0">
        <tr>
            <td>
                <table width="100%" class="InputTable">
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            唯一键：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            企业编码：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtCompanyID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            企业名称：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtCompanyName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            地址：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtAddress" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            联系人：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtLinkPerson" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            联系人电话：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtLinkPersonMobile" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            机构代码：
                        </td>
                        <td height="25" width="*" align="left">
                            <Kevin:CodeNameSelect ID="cns_OrgID" runat="server" ServicePath="~/Services/CodeNameService.asmx" ServiceMethod="GetOrg" MinimumPrefixLength="0" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <input type="button" id="btnQuery" value="查询" class="btn" />
                &nbsp;&nbsp;
                <input type="button" id="btnAdd" value="新增" class="btn" />
                <Kevin:DialogWindow ID="window1" runat="server" ControlID="btnAdd" URL="TU_Company.aspx"
                    Height="400px" Width="600px">
                </Kevin:DialogWindow>
            </td>
        </tr>
        <tr>
            <td>
                <Kevin:Grid ID="grid1" runat="server" GridCssClass="Grid" ServicePath="~/Services/BLLService.asmx"
                    QueryMethod="GetCompanyInfoList" AutoGetData="true" QueryControlID="btnQuery"
                    PagerPlace="Both" PageSize="15">
                    <Parameters>
                        <Kevin:QueryParameter ControlID="txtID" DataPropertyName="ID" />
                        <Kevin:QueryParameter ControlID="txtCompanyID" DataPropertyName="CompanyID" />
                        <Kevin:QueryParameter ControlID="txtCompanyName" DataPropertyName="CompanyName" />
                        <Kevin:QueryParameter ControlID="txtAddress" DataPropertyName="Address" />
                        <Kevin:QueryParameter ControlID="txtLinkPerson" DataPropertyName="LinkPerson" />
                        <Kevin:QueryParameter ControlID="txtLinkPersonMobile" DataPropertyName="LinkPersonMobile" />
                        <Kevin:QueryParameter ControlID="cns_OrgID" DataPropertyName="OrgID" GetValueClientMethod="_getCodeNameSelectValue" />
                    </Parameters>
                    <DataFields>
                        <Kevin:PopUpField FieldName="ID" ItemText="编辑" DialogTitle ="企业信息" NavigateURLString="TU_Company.aspx?KeyID={0}"
                            FormatFields="ID" DialogWidth="600" DialogHeight="400" />
                        <Kevin:DataBoundField FieldName="ID" HeaderText="唯一键" Visible="false" />
                        <Kevin:DataBoundField FieldName="CompanyID" HeaderText="企业编码" />
                        <Kevin:DataBoundField FieldName="CompanyName" HeaderText="企业名称" />
                        <Kevin:DataBoundField FieldName="Address" HeaderText="地址" />
                        <Kevin:DataBoundField FieldName="LinkPerson" HeaderText="联系人" />
                        <Kevin:DataBoundField FieldName="LinkPersonMobile" HeaderText="联系人电话" />
                        <Kevin:DataBoundField FieldName="OrgFullName" HeaderText="所属机构" />
                    </DataFields>
                </Kevin:Grid>
            </td>
        </tr>
    </table>
</asp:Content>
